package com.base.cn.platform.os.service.manage.order.pay;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * 订单支付回调接口
 *
 * @author s.li
 * @create 2018-09-11-20:02
 */
@FeignClient(name =  BaseService.appName,configuration = FeignAuthConfig.class)
public interface PayOrderCallbackService extends BaseService {

    /**
     * 支付成功回调
     * @param payCallbackEntity 回调数据
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/order/payCallback")
    Map<String,Object> payCallback(@RequestBody Map<String, Object> payCallbackEntity);
}
